const { ref, onMounted, onUnmounted } = Vue;

export function useEventListener(target,event,callback) {
    onMounted(() => {target.addEventListener(event,callback)})
    onUnmounted(() => {target.removeEventListener(event,callback)})
}

